package com.study.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * (Comments)实体类
 *
 * @author ak
 * @since 2021-03-15 09:01:06
 */
public class Comments implements Serializable {
    private static final long serialVersionUID = -96108661953202263L;
    /**
    * 评论的id
    */
    private Integer id;
    /**
    * 评论所对应的图书的id
    */
    private Integer bookId;
    /**
    * 发出该评论用户的id
    */
    private Integer userId;

    private Integer userName;
    /**
     * 用户电话号码
     */
    private String userPhone;
    /**
    * 评论的内容
    */
    private String content;
    
    private Date date;

    public Comments(Integer bookId){
        this.bookId = bookId;
    }

    public Comments(){

    }



    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Integer getUserName() {
        return userName;
    }

    public void setUserName(Integer userName) {
        this.userName = userName;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }
}